%.pdf : %.tex
	rm *.aux *.log *.out *.toc
	pdflatex -interaction nonstopmode -file-line-error $<
	pdflatex -interaction nonstopmode -file-line-error $<

docs=$(wildcard *.tex)

all: $(docs:.tex=.pdf)

clean:
	-rm *.aux *.pdf *.log *.toc *~ *.out
